//
//  PTMainNavViewController.m
//  PuTie
//
//  Created by 周宏全 on 2017/7/14.
//  Copyright © 2017年 周宏全. All rights reserved.
//

#import "PTMainNavViewController.h"
#import "PTHomeViewController.h"


@interface PTMainNavViewController ()

@end


@implementation PTMainNavViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    //添加子控制器
    [self addControllers];
    
}

-(void)addControllers{
    
    PTHomeViewController *mainVC = [[PTHomeViewController alloc] init];
    mainVC.title = @"普贴科技";
    
    self.viewControllers = @[ mainVC ];
    
    self.navigationBar.barTintColor = [UIColor blueColor];
    self.navigationBar.tintColor = [UIColor blueColor];
    
    
    [self.navigationBar setTitleTextAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:18],NSForegroundColorAttributeName: [UIColor whiteColor]}];
}

@end
